import {actions} from '../base';

let url = 'admin/api/manager/role';

export default {
    namespaced: true,
    state: {
        all: [],
        request: {
            all: false,
        }
    },
    mutations: {
        SET_ALL (state, data) {
            state.all = data;
        },
        SET_REQUESTING (state, name) {
            state.request[name] = true;
        },
        SET_REQUESTED (state, name) {
            state.request[name] = false;
        }
    },
    actions: actions(url),
    getters: {

    }
};
